package org.jeecg.modules.wms.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.wms.entity.FinishedGoodsInboundDetail;

import java.util.List;

/**
 * 成品入库明细Mapper接口
 */
public interface FinishedGoodsInboundDetailMapper extends BaseMapper<FinishedGoodsInboundDetail> {

    /**
     * 根据入库单ID查询明细
     */
    List<FinishedGoodsInboundDetail> selectByInboundId(@Param("inboundId") String inboundId);

    /**
     * 根据订单明细ID查询入库明细
     */
    List<FinishedGoodsInboundDetail> selectByOrderDetailId(@Param("orderDetailId") String orderDetailId);

    /**
     * 批量插入入库明细
     */
    int batchInsert(@Param("list") List<FinishedGoodsInboundDetail> list);
}
